package com.yu.app.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yu.app.pojo.Address;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

public interface AddressMapper extends BaseMapper<Address> {

    // 获取用户的收获地址
    @Select("select address.* from address where id in (select address_id from user_address where user_id = #{userId})")
    List<Address> selectAddressOfUser(String userId);
}
